﻿

<%namespace YouHP.Model%>
<%namespace YouHP.Utility%>

<%template _Header%>

<div class="layout2-cols2">
	
     <div class="col1">
		<%template _ProfileMenu%>
	</div>
	
	<div class="col2">
	    
	    
	    <script type="text/javascript">
		    function SubmitReplyForm()
		    {
		        var msg = document.feedback.msg.value.trim();
		        if (msg.length == 0)
                {
                    alert("评论内容不能为空！");
                    return;
                }
                else
                {
                    _$('feedback').submit();
                }
		    }
		</script>
		
	    <div class="box">
	        <div class="caption">
	            给 {ProfileData.UserName} 一个表情
	        </div>
	        <div class="content">
	            <%csharp%>TempUrl = "/Profile/ActionAdd.aspx"; <%/csharp%>
    	        <form id="feedback" name="feedback" method="post" action="{this.GetUrl(TempUrl)}">
    	            <input type="hidden" name="uid" value="{ProfileData.Id}" />
	                <div id="plshow">
	                    <p>&nbsp;&nbsp;</p>
                        <table width="100%">                            
                            <tr>
                                <%csharp%> for (int i=0; i < Constants.HugTypeCount; i ++) { <%/csharp%>
                                <td width="80"><table>
                                    <tr height="35"><td align="center"><img src="{Utils.GetHugUrl(i)}" " /></td></tr>
                                    <tr height="20"><td align="center"><span>{Utils.GetHugText(i)}</span></td></tr>
                                    <tr height="20"><td align="center">
                                        <input type="radio" class="radio" id="hugtype{i}" name="hugtype" value="{i}" />
                                    </td></tr>
                                </table></td>
                                <%csharp%> } <%/csharp%>
                                <td>&nbsp;&nbsp;</td>
                            </tr>
                        </table>
                        <script type="text/javascript">
                            _$('hugtype0').checked = true;
                        </script>
	                    
	                    <div class="bor"> 
                            <textarea name="msg" cols="110" rows="6" id="msg" class="rev_textarea"></textarea>
                        </div>
                        &nbsp;&nbsp;撒播爱的种子
                        &nbsp;&nbsp;&nbsp;&nbsp;<input name="sb" type="button" value="马上提交" class="btn" onClick='SubmitReplyForm();' />
                    </div>
                 </form>
                 <p>&nbsp;&nbsp;</p>
            </div>
	    </div>
	           
	</div> <!-- <div class="col2"> -->	
	
</div>

<%template _footer%>		
